.class public Les/ig;
.super Les/bg;
.source "SameFileResultObject.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/ig$b;
    }
.end annotation


# instance fields
.field private g:J

.field private h:Ljava/lang/String;

.field private i:Z

.field private j:Les/bg;

.field private k:[B


# direct methods
.method public constructor <init>(JLjava/lang/String;JJLjava/lang/String;I)V
    .locals 8

    move-object v7, p0

    move-object v0, p0

    move-object v1, p3

    move-wide v2, p4

    move-wide v4, p6

    .line 6
    invoke-direct/range {v0 .. v5}, Les/bg;-><init>(Ljava/lang/String;JJ)V

    move-wide v0, p1

    .line 7
    iput-wide v0, v7, Les/ig;->g:J

    move-object/from16 v0, p8

    .line 8
    iput-object v0, v7, Les/ig;->h:Ljava/lang/String;

    const/4 v0, 0x0

    .line 9
    iput-boolean v0, v7, Les/ig;->i:Z

    move-object v0, p0

    move/from16 v1, p9

    move-object v2, p3

    move-wide v3, p4

    move-wide v5, p6

    .line 10
    invoke-direct/range {v0 .. v6}, Les/ig;->a(ILjava/lang/String;JJ)Les/bg;

    move-result-object v0

    iput-object v0, v7, Les/ig;->j:Les/bg;

    return-void
.end method

.method public constructor <init>(Les/bg;)V
    .locals 6

    .line 1
    invoke-virtual {p1}, Les/bg;->getPath()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1}, Les/hg;->c()J

    move-result-wide v2

    invoke-virtual {p1}, Les/bg;->e()J

    move-result-wide v4

    move-object v0, p0

    invoke-direct/range {v0 .. v5}, Les/bg;-><init>(Ljava/lang/String;JJ)V

    .line 2
    iput-object p1, p0, Les/ig;->j:Les/bg;

    const-wide/16 v0, 0x0

    .line 3
    iput-wide v0, p0, Les/ig;->g:J

    const/4 p1, 0x0

    .line 4
    iput-object p1, p0, Les/ig;->h:Ljava/lang/String;

    const/4 p1, 0x1

    .line 5
    iput-boolean p1, p0, Les/ig;->i:Z

    return-void
.end method

.method private a(ILjava/lang/String;JJ)Les/bg;
    .locals 7

    const/4 v0, 0x1

    if-ne p1, v0, :cond_0

    .line 2
    new-instance p1, Les/gg;

    move-object v1, p1

    move-object v2, p2

    move-wide v3, p3

    move-wide v5, p5

    invoke-direct/range {v1 .. v6}, Les/gg;-><init>(Ljava/lang/String;JJ)V

    return-object p1

    :cond_0
    const/4 v0, 0x2

    if-ne p1, v0, :cond_1

    .line 3
    new-instance p1, Les/fg;

    move-object v1, p1

    move-object v2, p2

    move-wide v3, p3

    move-wide v5, p5

    invoke-direct/range {v1 .. v6}, Les/fg;-><init>(Ljava/lang/String;JJ)V

    return-object p1

    :cond_1
    const/4 v0, 0x3

    if-ne p1, v0, :cond_2

    .line 4
    new-instance p1, Les/lg;

    move-object v1, p1

    move-object v2, p2

    move-wide v3, p3

    move-wide v5, p5

    invoke-direct/range {v1 .. v6}, Les/lg;-><init>(Ljava/lang/String;JJ)V

    return-object p1

    :cond_2
    const/4 v0, 0x4

    if-ne p1, v0, :cond_3

    .line 5
    new-instance p1, Les/xf;

    move-object v1, p1

    move-object v2, p2

    move-wide v3, p3

    move-wide v5, p5

    invoke-direct/range {v1 .. v6}, Les/xf;-><init>(Ljava/lang/String;JJ)V

    return-object p1

    :cond_3
    const/4 v0, 0x5

    if-ne p1, v0, :cond_4

    .line 6
    new-instance p1, Les/uf;

    move-object v1, p1

    move-object v2, p2

    move-wide v3, p3

    move-wide v5, p5

    invoke-direct/range {v1 .. v6}, Les/uf;-><init>(Ljava/lang/String;JJ)V

    return-object p1

    :cond_4
    const/4 v0, 0x6

    if-ne p1, v0, :cond_5

    .line 7
    new-instance p1, Les/kg;

    move-object v1, p1

    move-object v2, p2

    move-wide v3, p3

    move-wide v5, p5

    invoke-direct/range {v1 .. v6}, Les/kg;-><init>(Ljava/lang/String;JJ)V

    return-object p1

    .line 8
    :cond_5
    new-instance p1, Les/bg;

    move-object v0, p1

    move-object v1, p2

    move-wide v2, p3

    move-wide v4, p5

    invoke-direct/range {v0 .. v5}, Les/bg;-><init>(Ljava/lang/String;JJ)V

    return-object p1
.end method

.method private a(Les/bg;)Ljava/lang/String;
    .locals 12

    .line 22
    invoke-virtual {p1}, Les/hg;->c()J

    move-result-wide v0

    long-to-int v1, v0

    const/4 v0, 0x3

    new-array v2, v0, [I

    const/4 v3, 0x0

    aput v3, v2, v3

    shr-int/lit8 v4, v1, 0x1

    add-int/lit16 v4, v4, -0x800

    const/4 v5, 0x1

    aput v4, v2, v5

    add-int/lit16 v1, v1, -0x1000

    const/4 v4, 0x2

    aput v1, v2, v4

    const/4 v1, 0x0

    .line 23
    :try_start_0
    new-instance v4, Ljava/io/FileInputStream;

    invoke-virtual {p1}, Les/bg;->d()Ljava/io/File;

    move-result-object p1

    invoke-direct {v4, p1}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
    :try_end_0
    .catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_3
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_2
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-object p1, v1

    :goto_0
    if-ge v3, v0, :cond_0

    .line 24
    :try_start_1
    aget v8, v2, v3

    iget-object p1, p0, Les/ig;->k:[B

    mul-int/lit16 v10, v3, 0x800

    const/16 v11, 0x800

    move-object v6, p0

    move-object v7, v4

    move-object v9, p1

    invoke-direct/range {v6 .. v11}, Les/ig;->a(Ljava/io/InputStream;I[BII)[B

    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    .line 25
    :cond_0
    invoke-static {p1, v5}, Lcom/baidu/android/common/security/MD5Util;->toMd5([BZ)Ljava/lang/String;

    move-result-object v1
    :try_end_1
    .catch Ljava/io/FileNotFoundException; {:try_start_1 .. :try_end_1} :catch_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    .line 26
    :goto_1
    invoke-static {v4}, Lcom/estrongs/fs/util/g;->a(Ljava/io/InputStream;)V

    goto :goto_4

    :catch_0
    move-exception p1

    goto :goto_2

    :catch_1
    move-exception p1

    goto :goto_3

    :catchall_0
    move-exception p1

    goto :goto_5

    :catch_2
    move-exception p1

    move-object v4, v1

    .line 27
    :goto_2
    :try_start_2
    invoke-virtual {p1}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_1

    :catch_3
    move-exception p1

    move-object v4, v1

    .line 28
    :goto_3
    invoke-virtual {p1}, Ljava/io/FileNotFoundException;->printStackTrace()V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    goto :goto_1

    :goto_4
    return-object v1

    :catchall_1
    move-exception p1

    move-object v1, v4

    .line 29
    :goto_5
    invoke-static {v1}, Lcom/estrongs/fs/util/g;->a(Ljava/io/InputStream;)V

    .line 30
    goto :goto_7

    :goto_6
    throw p1

    :goto_7
    goto :goto_6
.end method

.method private a(Ljava/io/InputStream;I[BII)[B
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    :goto_0
    if-lez p2, :cond_1

    int-to-long v0, p2

    .line 19
    invoke-virtual {p1, v0, v1}, Ljava/io/InputStream;->skip(J)J

    move-result-wide v2

    const-wide/16 v4, -0x1

    cmp-long p2, v2, v4

    if-eqz p2, :cond_0

    sub-long/2addr v0, v2

    long-to-int p2, v0

    goto :goto_0

    .line 20
    :cond_0
    new-instance p1, Ljava/lang/RuntimeException;

    const-string p2, ": unexpected EOF"

    invoke-direct {p1, p2}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw p1

    :cond_1
    const/4 p2, 0x0

    :cond_2
    add-int v0, p4, p2

    .line 21
    invoke-virtual {p1, p3, v0, p5}, Ljava/io/InputStream;->read([BII)I

    move-result v0

    const/4 v1, -0x1

    if-eq v0, v1, :cond_3

    add-int/2addr p2, v0

    sub-int/2addr p5, v0

    if-nez p5, :cond_2

    :cond_3
    return-object p3
.end method

.method private b(Les/bg;)Ljava/lang/String;
    .locals 5

    const/4 v0, 0x0

    .line 2
    :try_start_0
    new-instance v1, Ljava/io/FileInputStream;

    invoke-virtual {p1}, Les/bg;->d()Ljava/io/File;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
    :try_end_0
    .catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_3
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_2
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 3
    :try_start_1
    invoke-virtual {p1}, Les/hg;->c()J

    move-result-wide v2

    long-to-int p1, v2

    const/4 v2, 0x0

    const/16 v3, 0x1800

    if-ge p1, v3, :cond_0

    .line 4
    iget-object v4, p0, Les/ig;->k:[B

    invoke-static {v4, p1, v3, v2}, Ljava/util/Arrays;->fill([BIIB)V

    goto :goto_0

    :cond_0
    const/16 p1, 0x1800

    .line 5
    :cond_1
    :goto_0
    iget-object v3, p0, Les/ig;->k:[B

    invoke-virtual {v1, v3, v2, p1}, Ljava/io/FileInputStream;->read([BII)I

    move-result v3

    const/4 v4, -0x1

    if-eq v3, v4, :cond_2

    add-int/2addr v2, v3

    sub-int/2addr p1, v3

    if-nez p1, :cond_1

    .line 6
    :cond_2
    iget-object p1, p0, Les/ig;->k:[B

    const/4 v2, 0x1

    invoke-static {p1, v2}, Lcom/baidu/android/common/security/MD5Util;->toMd5([BZ)Ljava/lang/String;

    move-result-object v0
    :try_end_1
    .catch Ljava/io/FileNotFoundException; {:try_start_1 .. :try_end_1} :catch_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    .line 7
    :goto_1
    invoke-static {v1}, Lcom/estrongs/fs/util/g;->a(Ljava/io/InputStream;)V

    goto :goto_4

    :catch_0
    move-exception p1

    goto :goto_2

    :catch_1
    move-exception p1

    goto :goto_3

    :catchall_0
    move-exception p1

    goto :goto_5

    :catch_2
    move-exception p1

    move-object v1, v0

    .line 8
    :goto_2
    :try_start_2
    invoke-virtual {p1}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_1

    :catch_3
    move-exception p1

    move-object v1, v0

    .line 9
    :goto_3
    invoke-virtual {p1}, Ljava/io/FileNotFoundException;->printStackTrace()V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    goto :goto_1

    :goto_4
    return-object v0

    :catchall_1
    move-exception p1

    move-object v0, v1

    .line 10
    :goto_5
    invoke-static {v0}, Lcom/estrongs/fs/util/g;->a(Ljava/io/InputStream;)V

    .line 11
    goto :goto_7

    :goto_6
    throw p1

    :goto_7
    goto :goto_6
.end method

.method public static l()Ljava/lang/ThreadLocal;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/lang/ThreadLocal<",
            "Les/ig$b;",
            ">;"
        }
    .end annotation

    .line 1
    new-instance v0, Les/ig$a;

    invoke-direct {v0}, Les/ig$a;-><init>()V

    return-object v0
.end method


# virtual methods
.method public a([B)Ljava/lang/String;
    .locals 4

    .line 9
    iget-object v0, p0, Les/ig;->h:Ljava/lang/String;

    if-eqz v0, :cond_0

    return-object v0

    .line 10
    :cond_0
    iput-object p1, p0, Les/ig;->k:[B

    .line 11
    monitor-enter p0

    .line 12
    :try_start_0
    iget-object p1, p0, Les/ig;->h:Ljava/lang/String;

    if-nez p1, :cond_2

    .line 13
    invoke-virtual {p0}, Les/hg;->c()J

    move-result-wide v0

    const-wide/16 v2, 0x2000

    cmp-long p1, v0, v2

    if-gtz p1, :cond_1

    .line 14
    invoke-direct {p0, p0}, Les/ig;->b(Les/bg;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Les/ig;->h:Ljava/lang/String;

    goto :goto_0

    .line 15
    :cond_1
    invoke-direct {p0, p0}, Les/ig;->a(Les/bg;)Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Les/ig;->h:Ljava/lang/String;

    .line 16
    :cond_2
    :goto_0
    monitor-exit p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 17
    iget-object p1, p0, Les/ig;->h:Ljava/lang/String;

    return-object p1

    :catchall_0
    move-exception p1

    .line 18
    :try_start_1
    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw p1
.end method

.method public final a(J)V
    .locals 0

    .line 1
    iput-wide p1, p0, Les/ig;->g:J

    return-void
.end method

.method public b()Lcom/estrongs/fs/g;
    .locals 1

    .line 1
    iget-object v0, p0, Les/ig;->j:Les/bg;

    invoke-virtual {v0}, Les/bg;->b()Lcom/estrongs/fs/g;

    move-result-object v0

    return-object v0
.end method

.method public g()I
    .locals 2

    .line 1
    iget-object v0, p0, Les/ig;->j:Les/bg;

    instance-of v1, v0, Les/gg;

    if-eqz v1, :cond_0

    const/4 v0, 0x1

    return v0

    .line 2
    :cond_0
    instance-of v1, v0, Les/fg;

    if-eqz v1, :cond_1

    const/4 v0, 0x2

    return v0

    .line 3
    :cond_1
    instance-of v1, v0, Les/lg;

    if-eqz v1, :cond_2

    const/4 v0, 0x3

    return v0

    .line 4
    :cond_2
    instance-of v1, v0, Les/xf;

    if-eqz v1, :cond_3

    const/4 v0, 0x4

    return v0

    .line 5
    :cond_3
    instance-of v1, v0, Les/uf;

    if-eqz v1, :cond_4

    const/4 v0, 0x5

    return v0

    .line 6
    :cond_4
    instance-of v0, v0, Les/kg;

    if-eqz v0, :cond_5

    const/4 v0, 0x6

    return v0

    :cond_5
    const/4 v0, 0x0

    return v0
.end method

.method public final h()J
    .locals 2

    .line 1
    iget-wide v0, p0, Les/ig;->g:J

    return-wide v0
.end method

.method public final i()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Les/ig;->h:Ljava/lang/String;

    return-object v0
.end method

.method public final j()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Les/ig;->i:Z

    return v0
.end method

.method public final k()V
    .locals 1

    const/4 v0, 0x1

    .line 1
    iput-boolean v0, p0, Les/ig;->i:Z

    return-void
.end method

.method public toString()Ljava/lang/String;
    .locals 3

    .line 1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "SameFileResultObject [id="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-wide v1, p0, Les/ig;->g:J

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v1, ", md5="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Les/ig;->h:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, ", path="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Les/bg;->getPath()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, ", exist="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-boolean v1, p0, Les/ig;->i:Z

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    const-string v1, ", lastModified="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 2
    invoke-virtual {p0}, Les/bg;->e()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v1, ",filesize="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Les/hg;->c()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v1, "]"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
